import requests

def get_header():
    url =  "http://ihrm-test.itheima.net/api/sys/login"
    data = {"mobile": "13800000002", "password": "123456"}
    resp = requests.post(url, json=data)
    # 提取登录的JSON格式响应结果中的data，拼接Authorization
    header = {"Content-Type":  "application/json",
              "Authorization":"Bearer" + resp.json().get("data")
              }
    return header